import os
import datetime

def write_debug_info_to_file(model_dir, info):
	'''
	将一些辅助输出写入log.txt中
	:param model_dir:
	:param info:
	:return:
	'''
	info = '{}: {}'.format(datetime.datetime.now().isoformat(), info)
	print(info)
	with open(os.path.join(model_dir, 'log.txt'), 'a') as writer:
		writer.write(info)
		writer.write('\n')